import java.util.Scanner;

public class homework4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s1 = scanner.nextLine();
        String s2 = scanner.nextLine();
        String s3 = scanner.nextLine();
        int i = Integer.parseInt(s1);
        double v = Double.parseDouble(s3);
        double sum = i + v;
        System.out.println(sum);
        System.out.println(i+v+s2);
    }
}
